import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
public class Book2 {

	private String id;
	
	private String bookname;
	
	private String author;
	
	private String price;

	public String getId() {
		return id;
	}
	
	@XmlAttribute
	public void setId(String id) {
		this.id = id;
	}

	public String getBookname() {
		return bookname;
	}
	
	@XmlElement
	public void setBookname(String bookname) {
		this.bookname = bookname;
	}

	public String getAuthor() {
		return author;
	}
	
	@XmlElement
	public void setAuthor(String author) {
		this.author = author;
	}

	public String getPrice() {
		return price;
	}
	
	@XmlElement
	public void setPrice(String price) {
		this.price = price;
	}
	
}
